<?php get_header();?>
<?php 

$args = array(	
	'child_of'                 => $catobj->cat_ID,	
	'orderby'                  => 'name',
	'order'                    => 'ASC',	
	'pad_counts'               => false ); 
$categories = get_categories( $args );
?>

<h1><?php echo $catobj->name?></h1>

<?php if(!empty($categories)){?>
<div id="category">
	<ul>
			<?php foreach($categories as $cat){?>
			<li><a href="<?php echo home_url('/category/'.$cat->slug)?>"><h3><?php echo $cat->name?></h3></a></li>
			<?php }?>
		
	</ul>
	<div class="cleaner"></div>
</div>						
<?php }?>						
						
						<?php 
						$i=0;
						while(have_posts()):the_post();						
						$i++;
						if($i==1){
						?>
						<div class="maintip">
	                    <div class="image_wrapper image_tip">
	                        <a href="<?php the_permalink()?>" target="_parent">
	                        <?php the_post_thumbnail(array(280,150),array('alt'=>get_the_title(),'title'=>get_the_title(),'class'=>'imageFix','widthFix'=>280,'heightFix'=>150) );?>
	                        </a>	                        
	                        </div>
	                        <a href="<?php the_permalink()?>" target="_parent"><h2><?php the_title()?></h2></a>
	                        <p><?php the_excerpt()?></p>
	
	                    </div>
                    
	                    <div class="othertip"> 
	                        <ul id="service_list">
						<?php }else{?>
						<li><a href="<?php the_permalink()?>"><h2><?php the_title()?></h2></a></li>
						
						
							<?php }?>						
						<?php endwhile; ?>
						</ul>
                    
                    </div>
					
<?php get_footer(); ?>